
using System;
using Microsoft.Xna.Framework;
namespace GameEngine.Units
{
	public abstract class AIScript
	{
		private Unit owner;

		public AIScript()
		{
			
		}

		public Unit Owner
		{
			get
			{
				return this.owner;
			}
			internal set
			{
				if (this.owner != null)
				{
					throw new Exception("AIScript is allready running on unit.");
				}
				this.owner = value;
			}
		}

		internal protected abstract void Update(ref GameTime gameTime);
	}
}
